package com.imufe.chemicalenterprisedangerwarning.service.impl;

import com.imufe.chemicalenterprisedangerwarning.entity.po.InspectionMethodPO;
import com.imufe.chemicalenterprisedangerwarning.entity.vo.InspectionMethodVO;
import com.imufe.chemicalenterprisedangerwarning.mapper.InspectionMethodMapper;
import com.imufe.chemicalenterprisedangerwarning.service.InspectionMethodService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imufe.chemicalenterprisedangerwarning.util.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 检查形式 服务实现类
 * </p>
 *
 * @author BaiBan
 * @since 2022-10-19
 */
@Service
public class InspectionMethodServiceImpl extends ServiceImpl<InspectionMethodMapper, InspectionMethodPO> implements InspectionMethodService {

    @Autowired
    InspectionMethodMapper mapper;

    @Override
    public InspectionMethodVO basic(Byte id) {
        InspectionMethodPO po = mapper.selectById(id);
        return BeanUtils.copyPOJO(po, InspectionMethodVO.class);
    }
}
